﻿<!--#include file="../inc/easp/easp.asp"-->
<!--#include file="../inc/conn1.asp"-->
<!--#include file="../inc/checklogin.asp"-->
<!--#include file="../inc/easyide.asp"-->
<% CheckLogin("../index.asp") %>
<%
	If Session("Authority")<>"0" Then
		Response.Write "<script type=""text/javascript"">top.location.href='../main.asp';</script>"
	end if				
%>
<%
  dim uid
  uid = Easp.Get("uid")'获取用户ID
  
  '删除用户
  dim result1
  result1 = Easp.db.DeleteRecord("user", "ID:" & uid)  
  
  '删除管理的国家
  dim result2
  result2 = Easp.db.DeleteRecord("UserCountry", "UserID:" & uid)
  
  if result1<>0 and result2<>0 then
  	Response.Write "<script type=""text/javascript"">alert('Deleted successfully!');top.location.href='index.asp';</script>"
  else
  	Response.Write "<script type=""text/javascript"">alert('Delete failed!');top.location.href='index.asp';</script>"
  end if
%>